<?php

namespace fztadmin\modules\user\models\forms;

use yii\base\Model;

class SetPayPassword extends Model
{
    public $payPassword;
    public $emailCode;
    public $phoneCode;

    public function attributeLabels()
    {
        return [
            'payPassword' => "支付密码",
            'phoneCode' => "短信验证码",
        ];
    }

    public function rules()
    {
        return [
            [['payPassword', 'phoneCode'], 'required'],
            [['payPassword', 'emailCode', 'phoneCode'], 'trim'],
            ['payPassword', 'string', 'min' => 8],
        ];
    }

    public function updatePayPassword()
    {
        return true;
    }
}